package com.neu.yth.nepBackend.aqi.controller;

import com.neu.yth.nepBackend.aqi.service.IAqiService;
import com.neu.yth.nepBackend.entity.Aqi;
import com.neu.yth.nepBackend.utils.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 空气质量指数级别表 前端控制器
 * </p>
 *
 * @author YTH
 * @since 2024-05-31
 */
@RestController
@RequestMapping("/aqi")
public class AqiController {
    @Autowired
    IAqiService aqiService;

    @GetMapping("/select/all")
    public Result selectAll() {
        return aqiService.selectAll();
    }

}
